package com.itic.appbase.framework.xcx.type;
/**
 * 配送时段枚举 
 * @author enne
 *
 */
public enum DeliveryTimeType {

	time("0","时段配送"),quick("1","快速配送");

	private String type;
	
	private String name;
	
	DeliveryTimeType(String type, String name) {
		this.type = type;
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public static DeliveryTimeType getDeliveryTimeType(String type) {
		DeliveryTimeType deliveryTimeType = null;
		switch (type) {
		case "0":
			deliveryTimeType = DeliveryTimeType.time;
			break;
		case "1":
			deliveryTimeType = DeliveryTimeType.quick;
			break;
		}
		return deliveryTimeType;
	}
	

	
	
}
